<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <!-- <link
      rel="stylesheet"
      href="./test2.css"
      media="screen and (min-width:300px) and (max-width:500px)"
    />
    <link
      rel="stylesheet"
      media="screen and (min-width:500px)"
      href="./test1.css"
    /> -->
    <style>
      @media all and (min-width: 500px) {
        div {
          width: 100%;
          height: 500px;
          background-color: blue;
        }
      }
      @media screen and (max-width: 500px) {
        div {
          width: 100%;
          height: 500px;
          background-color: red;
        }
      }
    </style>
  </head>
  <body>
    <div></div>
  </body>
</html>
